//Stephen Kirksharian
//Robert Harkreader
//CPSC 321
//DUE 4/27/08

//We need to forward these signals
`define RTYPE 4'b1111

module ALU_lcl_ctr(funct, ALUopcode, control);
	input [5:0]funct;
	input [3:0]ALUopcode;
	output [3:0]control;

	reg [3:0]control;

always @(funct or ALUopcode) begin

	if(ALUopcode==`RTYPE) begin
	  control=funct[3:0];
	end else begin
	  control=ALUopcode;
	end

end

endmodule